package demo.bean;

import org.springframework.jmx.export.annotation.ManagedAttribute;
import org.springframework.jmx.export.annotation.ManagedOperation;
import org.springframework.jmx.export.annotation.ManagedResource;
import org.springframework.stereotype.Component;

@Component
@ManagedResource(objectName="springboothello:name=jmxhello",description="jmx hello bean")
public class JmxHelloBean {
	
	private String msg = "hello";
	
	@ManagedAttribute
	public String getMsg() {
		return msg;
	}

	@ManagedOperation
	public void setMsg(String msg) {
		this.msg = msg;
	}
	
}
